{extend name="base/index"/}

{block name="page_location"}
<div class="row">
	<div class="col-12">
		<div class="page-title-box">
			<div class="page-title-right">
				<ol class="breadcrumb m-0">
					<li class="breadcrumb-item">
						<a href="{:url('index/index')}">管理中心</a>
					</li>
					<li class="breadcrumb-item active"><i class="iconfont icon-angle-right"></i>选择信息的分类</li>
				</ol>
			</div>
			<h4 class="page-title">
				选择信息的分类
			</h4>
		</div>
	</div>
</div>
{/block}
{block name="body"}
<div class="row" id="select_class_page">
	<div class="col-12">
		<div class="card">
			<div class="card-body">
				<div class="table-responsive-lg">
					<form action="" method="post" id="cats_list_frm">
						<table class="table table-hover">
							<thead>
								<tr>
									<th>CID</th>
									<th>栏目名称</th>
									<th>所属模型</th>
									<th>栏目状态</th>
									<th>更新时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								{volist name='list' id="data"}
								<tr>
									<td>{$data.id}</td>
									<td>
										<span class="subtype_indent link">{$data.classname_indent}</span>
										<a href="{:url('document/index')}?cid={$data.id}" class="link">{$data.classname}【ID:{$data.id}】</a>
										<a href="{:url('document/publish')}?cid={$data.id}" class="badge badge-primary">发布信息</a>
									</td>
									<td>{$data.model_name}</td>
									<td>
										{eq name="data.status" value="0"}
										<a href="" attr-model="cats" attr-id="{$data.id}" attr-field="status" attr-val="1" class="badge badge-primary Fast_Action">启用</a>
										{else /}
										<a href="" attr-model="cats" attr-id="{$data.id}" attr-field="status" attr-val="0" class="badge badge-secondary Fast_Action">禁用</a>
										{/eq}
									</td>
									<td title="{$data.posttime|date=" Y-m-d H:i:s",###}">{$data.posttime|date="m-d H:i",###}</td>
									<td>
										<a href="{:url('document/publish')}?cid={$data.id}" class="btn btn-primary">快速发布</a>
										<a href="{:url('document/index')}?cid={$data.id}" class="btn btn-primary">所有信息</a>
									</td>
								</tr>
								{/volist}
							</tbody>
						</table>
					</form>
				</div>
				<!-- end table-responsive-->
			</div>
			<!-- end card body-->
		</div>
		<!-- end card -->
	</div>
	<!-- end col-->
</div>
{/block}